﻿using System;
using System.Windows;
using System.Windows.Media;
using Bookvar.ObjectModel;

namespace Bookvar.UI.ViewModel.LiveImages
{
    /// <summary>
    /// Contains information about an image from live.com.
    /// </summary>
    public class LiveImageInfo
    {
        public LiveImageInfo( ImageInfo imageInfo, ImageSource thumbnailSource, Size imageSize )
        {
            if ( imageInfo == null ) throw new ArgumentNullException( "imageInfo" );
            if ( thumbnailSource == null ) throw new ArgumentNullException( "thumbnailSource" );

            ImageInfo = imageInfo;
            ThumbnailSource = thumbnailSource;
            ImageSize = imageSize;
        }

        /// <summary>
        /// Gets or sets the image info.
        /// </summary>
        /// <value>The image info.</value>
        public ImageInfo ImageInfo { get; set; }

        /// <summary>
        /// Gets or sets the thumbnail source.
        /// </summary>
        /// <value>The thumbnail source.</value>
        public ImageSource ThumbnailSource { get; set; }

        /// <summary>
        /// Gets or sets the size of the image.
        /// </summary>
        /// <value>The size of the image.</value>
        public Size ImageSize { get; set; }
    }
}